﻿using DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BUS
{
    public class AccessoriesBUS
    {
        AccessoriesDAO db = new AccessoriesDAO();
        public List<Accessory> GetListAll()
        {
            return db.GetListAll();
        }
        public List<Accessory> GetListAll_Sort()
        {
            return db.GetListAll_Sort();
        }
        public List<Accessory> GetListTop10()
        {
            return db.GetListTop10();
        }
        public Accessory GetById(int id)
        {
            return db.GetById(id);
        }
         public List<Accessory> GetListSearch(string tukhoa)
        {
            return db.GetListSearch(tukhoa);
        }

         public bool Add(Accessory a)
         {
             return db.Add(a);
         }

         public bool Edit(Accessory a)
         {
             return db.Edit(a);

         }

         public bool Delete(int id)
         {
             return db.Delete(id);
         }
    }
}
